<?php
/**################################################################################################**   
# Copyright (c)  2008  Carlos Galindo.   
# Permission is granted to copy, distribute and/or modify this document   
# under the terms of the GNU Free Documentation License, Version 1.2   
# or any later version published by the Free Software Foundation;   
# Provided 'as is' with no warranties, nor shall the autor be responsible for any mis-use of the same.     
# A copy of the license is included in the section entitled 'GNU Free Documentation License'.   
#   
#   CJAX FRAMEWORK 3.0.0RC2                $     
#   ajax made easy with cjax                    
#   -- DO NOT REMOVE THIS --                    
#   -- AUTHOR COPYRIGHT MUST REMAIN INTACT -   
#   CJAX FRAMEWORK  3.0.0RC2               $     
#   Written by: Carlos Galindo                  
#   Website: www.cjax.net                     $      
#   Email: cjxxi@msn.com    
#   Date: 2/12/2007                           $     
#   File Last Changed:  03/24/2009            $     
**####################################################################################################*/   

class  handle_update_content  {

	function update()
	{
		$CJAX = CJAX ::getInstance();
		$i = 0;
		$start = $CJAX->get('cjax');
		while($i != 5 ){
			$i++;
			$time = $start-time();
			$time = $CJAX->date($time,"seconds");
			
			$CJAX->update("content$i","Updated! Server Time: <br />
			 Time Request Took: $time seconds");
		}
		
	}
	
	function update_boxes()
	{
		$CJAX = CJAX ::getInstance();
		$CJAX->update("box1"," Time is: <br />".$CJAX->date(time(),"detail"));
		$CJAX->update("box2"," IP is: <br />".$_SERVER['REMOTE_ADDR']);
		$CJAX->update("box3"," Server is: <br />".$_SERVER['SERVER_SOFTWARE']);
		$CJAX->update("box4"," Agent: <br />".$_SERVER['HTTP_USER_AGENT']);
		$CJAX->update("box5"," Php version: <br />".phpversion());
		
	}
	
}